package com.kpx.app.configs;

import com.kpx.app.base.ActivityBase;

/**
 * Created by Administrator on 2017/5/23.
 */

public abstract class MyActivityManager {
    private static MyActivityManager instance;

    public static MyActivityManager newInstance() {
        if(null == instance) {
            instance = new ActivityManagerImpl();
        }
        return instance;
    }

    public abstract void push(ActivityBase activity);
    public abstract void pop();
    public abstract void pop(Class<? extends ActivityBase> cls);
    public abstract void popAtIndex(int index);
    public abstract void remove(ActivityBase activity);
}
